home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / ZIPPED / DOS / GRAPHICS / POVSRC.ZIP / MACHINE.ZIP / UNIX.ZIP / GCC.C next >
C/C++ Source or Header  |  1992-03-18  |  2KB  |  68 lines

  1. /****************************************************************************
  2. *                unix.c
  3. *
  4. *  This module implements UNIX specific routines.
  5. *
  6. *  from Persistence of Vision Raytracer 
  7. *  Copyright 1991 Persistence of Vision Team
  8. *---------------------------------------------------------------------------
  9. *  Copying, distribution and legal info is in the file povlegal.doc which
  10. *  should be distributed with this file. If povlegal.doc is not available
  11. *  or for more info please contact:
  12. *
  13. *       Drew Wells [POV-Team Leader] 
  14. *       CIS: 73767,1244  Internet: 73767.1244@compuserve.com
  15. *       Phone: (213) 254-4041
  16. * This program is based on the popular DKB raytracer version 2.12.
  17. * DKBTrace was originally written by David K. Buck.
  18. * DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  19. *
  20. *****************************************************************************/
  21.  
  22. #include "frame.h"
  23. #include "config.h"
  24.  
  25. void unix_init_povray PARAMS ((void))
  26.    {
  27.    }
  28.  
  29. int matherr (x)
  30.    struct libm_exception *x;
  31.    {
  32.    switch(x->type) 
  33.      {
  34.      case DOMAIN:
  35.      case OVERFLOW:
  36.         x->retval = 1.0e17;
  37.         break;
  38.  
  39.      case SING:
  40.      case UNDERFLOW:
  41.         x->retval = 0.0;
  42.         break;
  43.  
  44.      default:
  45.         break;
  46.      }
  47.    return(1);
  48.    }
  49.  
  50. void display_finished ()
  51.    {
  52.    }
  53.  
  54. void display_init ()
  55.    {
  56.    }
  57.  
  58. void display_close ()
  59.    {
  60.    }
  61.  
  62. void display_plot (x, y, Red, Green, Blue)
  63.    int x, y;
  64.    char Red, Green, Blue;
  65.    {
  66.    }
  67.